﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
>



    <Style TargetType="TextBlock" >
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment"  Value="Center" />
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Margin" Value="3"/>
    </Style>



    <Style x:Key="BorderStyle" TargetType="Border" >
        <Setter Property="BorderBrush" Value="Gray" />
        <Setter Property="BorderThickness"  Value="4" />
        <Setter Property="Background" Value="#2a2f36">
        </Setter>
    </Style>

    <!-- Chart Styles -->
   

    <Style x:Key="ChartStyle" TargetType="telerikChart:RadChart" >
        <Setter Property="Background" Value="#2a2f36">
        </Setter>
    </Style>

    <Style x:Key="ChartTitleStyle"  TargetType="telerikCharting:ChartTitle">
        <Setter Property="HorizontalContentAlignment"
           Value="Center" />
        <Setter Property="Background" Value="#2a2f36"/>
        <Setter Property="Foreground" Value="Yellow"/>
        <Setter Property="FontSize"   Value="16" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikCharting:ChartTitle">
                    <ContentControl FontFamily="{TemplateBinding FontFamily}"
                                       FontSize="{TemplateBinding FontSize}"
                                       FontStyle="{TemplateBinding FontStyle}"
                                       FontWeight="{TemplateBinding FontWeight}"
                                       Foreground="{TemplateBinding Foreground}"
                                       HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                       Margin="{TemplateBinding Padding}"
                                       VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                       Content="{TemplateBinding Content}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="ClipPanelStyle" TargetType="telerikCharting:ClipPanel">
        <Setter Property="Background" Value="#2a2f36"/>
    </Style>

    <Style x:Key="AxisLineStyle" TargetType="Line">
        <Setter Property="Stroke" Value="White"/>
        <Setter Property="StrokeThickness" Value="4"/>
    </Style>

    <Style x:Key="AxisTickStyle" TargetType="Line">
        <Setter Property="Stroke" Value="White" />
        <Setter Property="StrokeThickness" Value="8"/>
    </Style>

    <Style x:Key="GridLineStyle"  TargetType="Line">
        <Setter Property="Stroke"   Value="Gray" />
        <Setter Property="StrokeThickness"     Value="1" />
    </Style>


    

    <Style x:Key="AxisTitleStyle" TargetType="telerikCharting:AxisTitle">
        <Setter Property="Foreground" Value="White" />
        <Setter Property="FontSize" Value="16"/>
    </Style>

    <Style x:Key="YItemLabelStyle"  TargetType="TextBlock">
        <Setter Property="Foreground"    Value="White" />
        <Setter Property="FontSize"      Value="12" />
    </Style>

    <Style x:Key="XItemLabelStyle"  TargetType="TextBlock">
        <Setter Property="Foreground"    Value="White" />
        <Setter Property="FontSize"      Value="12" />
    </Style>


    <Style x:Key="SeriesItemLabelStyle" TargetType="telerik:SeriesItemLabel">
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="Padding"           Value="2,0" />
        <Setter Property="IsHitTestVisible"          Value="False" />
        <Setter Property="Foreground"   Value="White" />
        <Setter Property="Background"   Value="Transparent" />
        <Setter Property="Stroke"       Value="White" />
        <Setter Property="FontWeight"           Value="Bold" />
        <Setter Property="FontStyle"           Value="Normal" />
        <Setter Property="FontSize"           Value="16" />
        <Setter Property="LabelStyle">
            <Setter.Value>
                <Style TargetType="Border">
                    <Setter Property="BorderThickness"                        Value="0" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock TextAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                            Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:SeriesItemLabel">
                    <Canvas x:Name="PART_MainContainer">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="HoverStates">
                                <VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="1.0"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Hovered">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="1.0"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Hidden">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="0.15"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Path Style="{TemplateBinding ConnectorStyle}"
                            Stroke="{TemplateBinding Stroke}"
                            StrokeThickness="{TemplateBinding StrokeThickness}"
                            Visibility="{TemplateBinding ConnectorVisibility}">
                            <Path.Data>
                                <PathGeometry>
                                    <PathFigure x:Name="PART_Connector">
                                        <PolyLineSegment />
                                    </PathFigure>
                                </PathGeometry>
                            </Path.Data>
                        </Path>
                        <Border x:Name="PART_TextContainer"
                            BorderBrush="{TemplateBinding Stroke}"
                            Background="{TemplateBinding Fill}"
                            Style="{TemplateBinding LabelStyle}">
                            <ContentPresenter Margin="{TemplateBinding Padding}" />
                        </Border>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="SumSeriesItemLabelStyle" TargetType="telerik:SeriesItemLabel">
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="Padding"           Value="0" />
        <Setter Property="IsHitTestVisible"          Value="False" />
        <Setter Property="Foreground"   Value="White" />
        <Setter Property="Background"   Value="Transparent" />
        <Setter Property="Stroke"       Value="White" />
        <Setter Property="FontWeight"           Value="Bold" />
        <Setter Property="FontStyle"           Value="Normal" />
        <Setter Property="FontSize"           Value="14" />
        <Setter Property="LabelStyle">
            <Setter.Value>
                <Style TargetType="Border">
                    <Setter Property="BorderThickness"                        Value="0" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock TextAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                            Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:SeriesItemLabel">
                    <Canvas x:Name="PART_MainContainer">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="HoverStates">
                                <VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="1.0"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Hovered">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="1.0"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Hidden">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0.00:00:00.15"
                                                        To="0.15"
                                                        Storyboard.TargetProperty="Opacity"
                                                        Storyboard.TargetName="PART_MainContainer" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Path Style="{TemplateBinding ConnectorStyle}"
                            Stroke="{TemplateBinding Stroke}"
                            StrokeThickness="{TemplateBinding StrokeThickness}"
                            Visibility="{TemplateBinding ConnectorVisibility}">
                            <Path.Data>
                                <PathGeometry>
                                    <PathFigure x:Name="PART_Connector">
                                        <PolyLineSegment />
                                    </PathFigure>
                                </PathGeometry>
                            </Path.Data>
                        </Path>
                        <Border x:Name="PART_TextContainer"
                            BorderBrush="{TemplateBinding Stroke}"
                            Background="{TemplateBinding Fill}"
                            Style="{TemplateBinding LabelStyle}">
                            <ContentPresenter Margin="{TemplateBinding Padding}" />
                        </Border>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ChartLegendItemStyle"  TargetType="telerikCharting:ChartLegendItem">
        <Setter Property="Foreground" Value="White"></Setter>
    </Style>


    <Style x:Key="ChartLegendStyle" TargetType="telerikCharting:ChartLegend">
        <Setter Property="LegendItemStyle"  Value="{StaticResource ChartLegendItemStyle}" />

        <Setter Property="Foreground" Value="White"></Setter>
        <Setter Property="Background" Value="#2a2f36"></Setter>
        <Setter Property="BorderBrush" Value="Black" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="HorizontalAlignment" Value="Center" />
    </Style>
   
    
</ResourceDictionary>